<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<title>添加产品-商城管理-{$site.BACK_NAME}</title>
<include file="Public:jscss"/>
</head>
<body>
<div class="wrap">
 <include file="Public:head"/>
 <div class="mainBody">
  <include file="Public:left"/>
  <div id="Right">
   <div class="Item hr">
    <div class="current">添加产品</div>
   </div>
   <form action="" method="post">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
	 <tr>
      <th width="100">产品分类：</th>
      <td>
       <select name="cid">
		<volist name="clist" id="vo">
		<option value="{$vo.id}">{$vo.fullname}</option>
		</volist>
       </select>
	  </td>
     </tr>
     <tr>
      <th>产品名称：</th>
      <td><input type="text" name="name" value="" class="input" size="60"/></td>
     </tr>
	 <tr>
      <th>产品编号：</th>
      <td><input type="text" name="serial_number" value="" class="input" size="60"/> 产品编号最好是具有唯一性，方便日后的扩展</td>
     </tr>
	 <tr>
      <th>积分价格：</th>
      <td><input type="text" name="price" value="" class="input" size="5"/>仅支持数字</td>
     </tr>
	 <tr>
      <th>库存数量：</th>
      <td><input type="text" name="stock" value="" class="input" size="5"/>仅支持数字</td>
     </tr>
	 <tr>
      <th>产品图片：</th>
      <td><input type="file" name="pic" class="input" size="30"/></td>
     </tr>
	 <tr>
      <th>产品单位：</th>
      <td><input type="text" name="unit" value="" class="input" size="5"/></td>
     </tr>
     <tr>
      <th>产品描述：</th>
      <td><textarea name="intro" id="content" class="input" style="height: 680px; width:563px;visibility:hidden;"></textarea></td>
     </tr>
	 <tr>
      <th>产品排序：</th>
      <td><input type="text" name="sort" value="0" class="input" size="5"/></td>
     </tr>
	 <tr>
      <th>产品状态：</th>
      <td>
	   <select name="status">
		<option value="1">在架</option>
		<option value="2">下架</option>
	   </select>
	  </td>
     </tr>
    </table>
   </form>
   <div class="commonBtnArea" >
    <button class="btn cfz_submit">提交</button>
   </div>
  </div>
 </div>
</div>
<div class="clear"></div>
<include file="Public:foot"/>
<js href="__PUBLIC__/js/kindeditor/kindeditor.js,__PUBLIC__/js/kindeditor/lang/zh_CN.js,__PUBLIC__/js/kindeditor/editorbuild.js"/>
<script type="text/javascript">
$(function(){
	//创建编辑器
	var content = EDbuildByIdMini('content');
	//同步编辑器并提交表单
	$(".cfz_submit").click(function(){
		//content.sync();
		KindEditor.sync('#content');
		commonAjaxSubmit();
		return false;
	});
});
</script>
</body>
</html>